<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular-1.3.0.js"></script>
    <title></title>
</head>
<body ng-app>
<div ng-controller="control">
    <button ng-click="bb('我变了')">{{aa}}</button>
    <div ng-controller="childControl">
        <h3>{{aa}}</h3>
        <button ng-click="cc('我是孩子')">孩子</button>
    </div>
</div>
<script>
    function control ($scope){
        $scope.aa="hello world";
        $scope.bb=function(option){
            $scope.aa=option
        };

    };
    function childControl($scope){

        $scope.cc=function(option){
            $scope.aa=option
        }
    }
</script>
</body>
</html>